
#include "stdafx.h"
#include "WicBitmapCodecProgressNotification.h"

CWicBitmapCodecProgressNotification::CWicBitmapCodecProgressNotification()
{
    m_pIWICBitmapCodecProgressNotification = NULL;
}

CWicBitmapCodecProgressNotification::~CWicBitmapCodecProgressNotification()
{
    if(m_pIWICBitmapCodecProgressNotification)
    {
        m_pIWICBitmapCodecProgressNotification->Release();
    }
    m_pIWICBitmapCodecProgressNotification = NULL;
}

CWicBitmapCodecProgressNotification::CWicBitmapCodecProgressNotification(CWicBitmapCodecProgressNotification const & objBitmapCodecProgressNotification)
{
    m_pIWICBitmapCodecProgressNotification = objBitmapCodecProgressNotification.m_pIWICBitmapCodecProgressNotification;
    m_pIWICBitmapCodecProgressNotification->AddRef();
}

CWicBitmapCodecProgressNotification& CWicBitmapCodecProgressNotification::operator=(CWicBitmapCodecProgressNotification const & objBitmapCodecProgressNotification)
{
    if(m_pIWICBitmapCodecProgressNotification)
    {
        m_pIWICBitmapCodecProgressNotification->Release();
    }
    m_pIWICBitmapCodecProgressNotification = objBitmapCodecProgressNotification.m_pIWICBitmapCodecProgressNotification;
    m_pIWICBitmapCodecProgressNotification->AddRef();
    return *this;
}
